<?php

namespace App;

class Cell
{
	//Status:
	// 1: Solid (indestructible)
	// 2: Solid (destructible)
	// 3: Empty
	public $status;
	
	private $validStatus = array(1,2,3);
		
	public function __construct($status = 3)
	{
		$this->changeStatus($status);
	}
	
	public function changeStatus($status = 3)
	{
		if(!in_array($status, $this->validStatus))
			$status = 3;
		
		$this->status = $status;
	}
}
?>